NAME	=	rsa
CC		=	gcc
SRCS	=	generate_keys.c				\
			gcd.c						\
			generate_primes.c			\
			multiplicative_inverse.c	\
			main.c
OBJS	=	$(SRCS:.c=.o)
CFLAGS	=	-W -Wall -ansi -pedantic -O4
LDFLAGS	=	-lm

$(NAME) : $(OBJS)
		$(CC) $(OBJS) $(LDFLAGS) -o $(NAME)
all		: $(NAME)

clean	:
		$(RM) $(OBJS)

fclean	:	clean
		$(RM) $(NAME)

re		:	fclean all
